Python Check If Object Is A String