https://weshallneversurrender.com/PyErr-ResourceWarning/
Understanding PyErr_ResourceWarning in Python