Resolves #104 on python 2.6,2.7,3.2,3.3,3.4