Update scratch_handler.py

Updated so that it works when you open a saved scratch project
Merge pull request #5 from mikajones/patch-1

Update scratch_handler.py