created a python version of this with more stuff, like connections, etc