bugfix for python27
Merge pull request #9 from goagent/3.0

bugfix for python27