People Can't  Convert DEC to HEX

Added a simple function to convert decimal values into the necessary
TGID hexadecimal strings. Seems like everyone contacting me with
trouble using bridge.py has trouble doing this.