Numpy Variable Length Coding