Hi, I am trying to duplicate the indenting functionality of the IDLE into another environment used in an educational setting at MIT.  As Python is open software, I assume I can look at the source code for the IDLE.  If someone could kindly give me a pointer as to where I might find the source code for this functionality, I would very much appreciate it.
 
Thank you very much,
Beth