add pymr-register command, logic, tests