Safe scipy import
Changed from ImportError to RuntimeError
Merge pull request #1040 from bartvm/scipy

Safe scipy import for target_format.py