update python2.7, python3.3 compatibility