Add hexadecimal support and more error checking to tap2sna.py