title: How to get a type of the variable from the Python's AST?
body: <p>Suppose I want to get the type of all variables from the AST tree that I have generated from some source code -- how would I go about doing that?
  For example, suppose in my source code I have something like <code>i = 5</code>. How would I determine, from the abstract syntax tree, that the type of <code>i</code> is integer?</p>
  
  <p>I tried the <code>type()</code> function; however, it does not work in this situation.</p>