Fixed PEP8 issues and updated to conform to Cuckoo's coding style