How do I define multiple operators in the same script?

how do I register multiple operators in the same script?

I have:

def main(context)
class Operator(bpy.types.Operator):

     blah blah blah

if name == “main”:

register()

but if I repeat this it just overpowers the next one.

This is the basic registration:
It will register all Classes derived from the classes from bpy types which are registerable (operators, panels, …)


def register():
    bpy.utils.register_module(__name__)


def unregister():
    bpy.utils.unregister_module(__name__)


if __name__ == "__main__":
    register()