Python utility to remember commands on MacOSX