title: Parser to get start and end positions of a token
body: <p>I am trying to replicate bug detection software built for JavaScript file to use it for finding bugs in Python files.</p>
  <p>The process involves finding the start and end positions of a token based on column number.</p>
  <p>Below is the output of using acorn JS parser on a .js file:</p>
  <p><img src="https://i.stack.imgur.com/EdFoy.png" alt="acorn parse output" /></p>
  <p>In the above image, the start and end locations of a token are the column numbers in the entire document.</p>
  <p>I have checked Python tokenizer, which only gives the loc.start and loc.end values equivalent to the ones in the above picture.</p>
  <p><img src="https://i.stack.imgur.com/CsOLF.png" alt="python tokenizer output" /></p>
  <p>But how to get the start and end values for pythons tokens just like acorn output picture?</p>