port to python3

    - string.maketrans is not supported
    - use bytes to convert string variables
    - use decode
    - cmp function is restricted

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
use lambda
decode on input & encode on output

cupsGetFd() & cupsPutFd() operate on files in binary mode.
use tempfile.NamedTemporaryFile()

File will be destroyed as soon as it is closed
(including an implicit close when the object is garbage collected).
tempfile.mkstemp () opens file by default in binary mode
open temp file in text mode

ppd.writeFd() writes into it in text mode
urllib.request.urlopen(url).read() returns bytes

Therefore when writing the data we need to open output
file in binary mode.
encode on output
Update *.ui files

by opening and saving them in glade-3.16.1