Importor: SYS.Meta_path n'est aucun, Python s'arrête probablement

Try adding 
env.close() 
or
env.env.close()
at the end of your programs
Yawning Yak