fixed my python <2.6 problems