How to add and incorporate external physical code to MIT App Inventor

If I want to use Python, Java, or HTML to give my project some advanced and written code instead of just using blocks, how can I do so?

You could start here

then move on to the Open Source section, using and writing extensions.