Adds autocompletion to interactive python shell

Adds autocompletion for linux, win32 and Mac OS X platforms.
This doesn't look Python 3 compatible.