db to py2