fix inconsistent indentation which breaks with Python 3