Modifications to make code pass pyflakes test and check for functional.py using full path in travis