Simple terminal prompt in python which shows the list of commands a user has entered so far, that can be tab autocompleted