A mixed cython/numpy wrapper with array broadcast capability