Small fixes to the script restore_hazards.py

The logging was not initialized and the argument parsing part was not invoked.