title: How can to glue lua and python
body: <p>I'm making a DBMS for my father's grocery store, I want to send the bills to the mobile numbers of the customers. So I'm thinking that Lua will handle the app interface and python all the backend work in Solar 2d. But I don't know how to build them together so that they work with each other and no need to start a python interpreter at each session.
  THIS IS PSEUDOCODE</p>
  <pre><code>--lua code 
  local py = require(&quot;python&quot;) -- There I import my python module
  local my_file = require(&quot;my python file&quot;)
   
  py.my_file.some_function(&quot;some Value&quot;)
  
  #then in python after the script run it executes python code 
  import my_lua_file_output
  
  def some_function(someValue): # this is the same function used in above lua script 
      my code 
  </code></pre>
  <p>Thank you in Advance.</p>