streamline IO

use locals().update(y) to turn dictionary items into variables.