fixed a bug introduced by autopep8.