How to transit python code to julia

See the post by tamasgal