Wouldn't say the real issue is resolved, there should probably be a fixed default behavior here in Pythonista.
I've also had problems using this workaround with input_alert() - if I decorate with @ui.in_background then I get :
Main Thread Checker: UI API called on a background thread: -[UIView subviews]
Works with @on_main_thread