How to fix RuntimeError: no running event loop in Python | DevErrors