Fixed idle callbacks to work regardless of whether the normal Urwid interface or AsyncIO's is used.