In Python code, define an object with a write method that takes a single string argument. Assign this object to