Removed useless code reported by pyflakes at Travis CI