use correct type (unsigned char) for binaries; use implicit cffi cast when calling functions; use list comprehension since it is faster