Python Wait For Function In Excel