Python Idioms fixes
- Changed class to "new style"
- Added context managers to file I/O operations
- Prints now use the format() method
- Removed redundant try/except in get()
- PEP8 fixes for whitespace and naming