Make writeToModule use PyMarshal_WriteObjectToString to avoid having a compiler dependent FILE *