Fix ImportError in functional test using Python 3.4