(Mostly) whitespace fixes
PEP8 whitespace fixes
Remove stale debug code
Use isinstance instead of unary type
Remove unneccessary pass statement
Fix indentation according to PEP8 in api.py
PEP8 imports
PEP8 indentation
PEP8 newlines between class members
PEP8 indentation of multiline expressions
PEP8 indentation
PEP8 indentation
while 1 -> while True
More PEP8 indentation fixes
Move isinstance checks back to unary type checks
Merge pull request #260 from lvh/cleanup

Many minor PEP8 and related cleanups