Remove need for platform package

Deleted unncessary comments (don't even remember what "Why no comments
was about?", didn't mean to commit that, sorry...).

Removed platform-dependent file opening.  Using 'wb' mode should be fine
for all platforms according to docs, especially because only opening
file for writing here.

Closed file after writing.