cloned PyHTL v1.1