ONEx in Python