Fixes PEP8 errors, and pil import