Factor out constants
fix flush issues when breaking out of an iterator (see issue #8 on pytables
github