writemime of PyObjects (fix #43)