I recently started learning python. I have created some basic webapps with Django and wrote some simple scripts. After using VIM as a Python IDE I really fell I love with \"Term
You should take a look at the cmd module.
See the Python Cookbook for examples of its use.