title: Counting number of symbols in Python script
body: <p>I have a Telit module which runs [Python 1.5.2+] (http://www.roundsolutions.com/techdocs/python/Easy_Script_Python_r13.pdf)!. There are certain restrictions in the number of variable, module and method names I can use (&lt; 500), the size of each variable (16k) and amount of RAM (~ 1MB). Refer pg 113&amp;114 for details. I would like to know how to get the number of symbols being generated, size in RAM of each variable, memory usage (stack and heap usage). </p>
  
  <p>I need something similar to a map file that gets generated with gcc after the linking process which shows me each constant / variable, symbol, its address and size allocated. </p>