Made impyla fully DB API 2 compliant and added tests