Python: Understand multiple parse mode flags specified in a regular expression string
debug based on location