python: do not use "is" for string equality