general cleanup

removed equality checks and replaced with 'is None'
added double spaces before functions (PEP 8)
replaced single quote doc strings with double quote (PEP 8)