update from 2.7 to 3.3

execfile is not supported in python 3.3