Execute o arquivo python no modo interativo

exec(open("./filename").read())
#this works for python3 and not 2
Victorious Vole