Started using PEP 8 style (mostly) and flake8.

Signed-off-by: Atheriel <atheriel@gmail.com>