First stab at the SDX to Pyretic converter