Add python DBAPI 2.0 compatibility

I have added more compatibility with the python DBAPI 2.0. It is now possible to use pandas.io.sql to query hive using a connection object of pyhs2.