def _parse_filter_word(self, word):
if isinstance(word, str):<EOL><INDENT>word = "<STR_LIT>".format(word)<EOL><DEDENT>elif isinstance(word, dt.date):<EOL><INDENT>if isinstance(word, dt.datetime):<EOL><INDENT>if word.tzinfo is None:<EOL><INDENT>word = self.protocol.timezone.localize(<EOL>word)  <EOL><DEDENT>if word.tzinfo != pytz.utc:<EOL><INDENT>word = word.astimezone(<EOL>pytz.utc)  <EOL><DEDENT><DEDENT>if '<STR_LIT:/>' in self._attribute:<EOL><INDENT>word = "<STR_LIT>".format(<EOL>word.isoformat())  <EOL><DEDENT>else:<EOL><INDENT>word = "<STR_LIT:{}>".format(<EOL>word.isoformat())  <EOL><DEDENT><DEDENT>elif isinstance(word, bool):<EOL><INDENT>word = str(word).lower()<EOL><DEDENT>return word<EOL>
Converts the word parameter into the correct format