PEP8 clean up of 1-16 and add solution to #17

- Added solution to problem #17
- PEP8 cleanup of a most problems