Removed Bugs. PEP8 formatted.