Change <udt> -> <udt/udt> for Ubuntu libudt-dev
Ported some bits to Python 3