Add pyflakes testing and missing mock library for travis