[python mode] Make tokenizer regexps configurable