I created my own programming language to create character animation

Good day
I created my own programming language to create character animation.

Can you tell me where in the Blender source codes to place the code to read the bpy Python file

I want to speed up the transfer of Python code to Blender.
I tried to place the code in the wm.c file where the eternal while loop

Bpy functions do not work. How to do it all right?