How to continue the python script execution from the point it left before reboot
===

I want to write a test script which is rebooting the system in between the test execution on local machine... (No remote automation server is monitoring the script). How the script execution can be made continuous even after reboot? The script covers following is the scenario...

1. Create a Volume on some disk
2. Create a filesystem and mount the file system temporary 
3. Reboot the system 
4. Verify if filesystem is mounted 
5. Mount the filesystem again.