Fixed bug in pull request 124 for fox with Python 2.