Convert logisim .circ file to a magma python program