Removed erroneous semicolons to follow PEP8
Cleaned up syntax to follow PEP8