Serializing Objects In Python Example Program