Python Test If Variable Is A String