In the interest of getting this done faster, move a lot of the boilerplate-heavy C into Python
Set up for connection pooling