I'm not sure if this answers your question but I found this online:
The main difference between Java and Python is their conversion; the Java compiler converts the Java source code into an intermediate code called a bytecode while the Python interpreter converts the Python source code into the machine code line by line.
Sorry if this doesn't answer your question.