wrapping library for hbaapi in Python