replace function execfile (not available in python 3)