Add python DBAPI 2.0 compatibility