Moved Api object creation to hs_core/api.py