Fix errors and warnings pointed by flake8
Increase flake8 complexity parameter in order to support original implementation of atomformat.py