Making it work with python26 and python34