regist在python