First step of the resume feature from #24.

I think it is better to create temporary files with `import tempfile`. We don't want someone running the unit tests has his alredy existing "running_commands.txt" file to be overwritten.