closing file before creating the data binding, also modified script a bit
Merge pull request #99 from jiwalker-usgs/master

Just a little fix before testing with JR