how to create a register system using python