Space fixes / PEP 8 compliance

Minor changes, mostly formatting, but you should certainly never mix tabs and spaces within a python file.