use correct variable name
for some reason xrange does not work here
if mac addr is not registred return 404