Elixir call python by ports

Here’s a great article on ports: The Erlangelist - Outside Elixir

It uses Ruby, not Python, but the general approach should be exactly the same.