pep8 (fixes #1), trace logs cleanup

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>