fix hour-old bug with python3