Local Binary Pattern Code In Python