Serializing Objects In Python Example Code