title: Call Python 3.x functions in Java
body: <p>I want to call Python functions in Java. I know there is Jython, which comes with the PythonInterpreter for Java, but sadly it only supports Python 2.7. </p>
  
  <p>For a better explanation of what I want to do. Let's say I have the following Python code in a given file:</p>
  
  <pre><code>@staticmethod
  def my_first_function():
     print("Hi!")
  
  @staticmethod
  def my_second_function():
     print("Hi again!")
  </code></pre>
  
  <p>I want to be able to <strong>EXPLICITLY</strong> call functions like this in Java now:</p>
  
  <pre><code>PythonToJava pythonToJava = new PythonToJava("my/python/script/path");
  pythonToJava.my_second_function(); 
  pythonToJava.my_first_function();
  </code></pre>
  
  <p>How can I use/call a Python module/script/class/etc. in Java?</p>