Python based emf file generator