Fix code to comply with linting in PyFlakes 3.7.1.