use relative import and fix py3 compat issue on DataAdapter.keys method