fix intermittent ipython queue empty bug, fixes #16