Use 'w' flag for writing as 'w+' causes Windows to throw an error

Fixes issue #101.
Bump versions