Convert this python code into elixir

Nice work …