Fixing python tab completion and history.