freeze earlier in python script