React Wait 5 Seconds Python