Ip2loc is a project mainly written in PERL and PYTHON, it's free.
A wee bit o' code looking at Ruby, Perl, and Python grabbing a XML file from a URL and parsing it and displaying it.
404: Not Found