Place your code in separate files. Best pratice is to put operators, menus, views etc. everything that needs a register and unregister function into its own file and let 'init.py' initialize the ...