Fix qt api env var set to None with python 2.7 (#41)