move api to pyaardvark.py __init__(), and test fsm