#!/usr/bin/python

def get_secret_for_user(user, ipparam):
    print "Looking up user %s with ipparam %s" % (user, ipparam)
    return "user_secret"

def allowed_address_hook(ip):
    return True

def chap_check_hook():
    return True

def ip_up_notifier(ifname, ouraddr, hisaddr):
    print "ip_up_notifier"

def ip_down_notifier(arg):
    print "ip_down_notifier"

def auth_up_notifier(arg):
    print "auth_up_notifier"

def link_down_notifier(arg):
    print "link_down_notifier"

#!/usr/bin/env python

def get_secret_for_user(user, ipparam):
    print("Looking up user %s with ipparam %s" % (user, ipparam))
    return "user_secret"

def allowed_address_hook(ip):
    return True

def chap_check_hook():
    return True

def ip_up_notifier(ifname, localip, remoteip):
    print("ip_up_notifier")

def ip_down_notifier(arg):
    print("ip_down_notifier")

def auth_up_notifier(arg):
    print("auth_up_notifier")

def link_down_notifier(arg):
    print("link_down_notifier")

Fix print statements for Python 3
Fix print statements for Python 3

Although I haven't tested Python 3 for this, all print statements have
been updated to use parenthesis. There are also some minor fixes to the
names of the ip-up hook arguments.
