/home/muneeb/.local/bin/hocr-pdf:134: DeprecationWarning: decodestring() is a deprecated alias since Python 3.1, use decodebytes()
uncompressed = bytearray(zlib.decompress(base64.decodestring(font)))
In the file we need to go ahead and use decodestring() function instead.