Fix first class continuations on python and ruby backends