Basic Python lexer.