enable auto completion in python interpreter

Credit goes to http://stackoverflow.com/q/7116038.