Export lexer from PythonLexer; improve test.