Refactor GenePop's _FileIterator

This way the file open/close is (typically) in one place.
thread->threading and PEP8