Use new style classes and some pep8 fixes
Change whitespace, fix Namespace class error, fix single line comments