streamline IO

use locals().update(y) to turn dictionary items into variables.
Merge pull request #6 from MattHJensen/master

streamline IO