Iterate over a MySQL database schema as a Python object