Fix bug when using Python3.4 under windows where it wasn't possible
to call len() on a generator.