fix AttributeError type
add run script
Merge pull request #28 from nwlunatic/run_script

Run script