Is there a way to create your own logic brick via Python?
Via python, no. Via C++, yes.
Do you know any tutorials for this?
You would need to compile your own modified Blender version in order to do this, are you sure you want to go this way ?
I don’t think there is any tuto, but if you really want to try it here are the Blender sources for UPBGE: https://github.com/UPBGE/blender.
I think it would be easier to make a script, what is your logic brick idea about ?
Chances are that Python could make it happen, without adding a new LB.
Your own custom logic brick is the Python controller.
It serves the frame of a controller and you write python code how to behave.