The timing of writing is off with Python =_=