Remove duplicate import of sys
Alter whitespace and comments for PEP8