Minor improvements to BGTools_cython.pyx