url reversing can now handle domains
cleaned out old python attempt