Convert from Python to Julia