Resolved bugs after testing. Could not properly identify when there were not enough bytes in a byte array
Resolved PEP8 related warnings