Python Test If Variable Is String