rms pgc files in a more pythonic way while creating mars