Check If An Object Is A String Python