Update to work with autopep8 v1.0

Contains a hack to keep the compatibility with previous versions