core: read files in binary mode

Signed-off-by: David Aguilar <davvid@gmail.com>
core: portability and readability tweaks

Older pythons do not have generator expressions.
Adjust win32's fork() for portability to older pythons and make it a
little more readable.

Signed-off-by: David Aguilar <davvid@gmail.com>