Code refactored to comply with PEP 8.
Removed python3 style print commands.
Removed unnecessary function.
Updated README.