use setattr so as not to trigger warnings from Fiona.
Merge pull request #7 from sambrightman/5e957de9224acda99fd522aa2373f97f8261101b

use setattr instead of double underscores