fixed pyflake errors