Fix failing PyFlakes tests