Fixed incompatibility with python 2.6+/3+