Refactor internal lexer to jpylexer