Writing a shell in Python

Hi all,

For one of my projects I'm required to write a python shell which takes in the usual shell commands such as changing directory, clearing the screen and quitting the shell. I've found plenty of resources on doing it in C, but nothing on Python yet. Could anyone point me in the right direction or give me some advice to get me started?

Many thanks!

PYSH: A Python Shell probably has some code for you, although it's no longer maintained. It also points to a competing project.