Converter from python to GeNIe