-#!/usr/bin/python
+#!/usr/bin/python3
import sys, re
from netaddr import IPAddress, AddrFormatError
if len(sys.argv) != 2:
- print >>sys.stderr, "Usage: %s filename" % sys.argv[0]
+ print("Usage: %s filename" % sys.argv[0], file=sys.stderr)
sys.exit(1)
log = open(sys.argv[1], "a")