1. Correct line terminaters from DOS to UNIX.
2. PEP8 corrections.