Pep8 and cleanup pass

- Tabs > Spaces
- No semicolons
- Removed spaces from places they shouldn't be
- Added spaces to places they should be
- Fixed some just blatently broken code
- Replaced a few things with builtins
- Started migration to requests