fixed typo
release gil on open
added average_rate