Related to Python 3.6+

import asyncio
import logging

logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()
loop.set_debug(True)

Also you an enable ResourceWarnings providing -Wdefault argument to python command