python interface for chm hardware