Fixed python 2 bug in new functional tests