Convert har file to python code