Support python 2.7 and 3.0.

Signed-off-by: david <db@d1b.org>
Have travis ci test against 3.3.

Signed-off-by: david <db@d1b.org>
Merge pull request #69 from d1b/python_3_hacking

Support python 2.7 and version >= 3.3.
Fixing invalid COUNTRY_CODE_URL
Merge pull request #71 from Phoul/master

Fixing invalid COUNTRY_CODE_URL
Update README
Fail tests on failed tests

Travis CI uses exit codes to determine if tests pass.  Unfortunately, we
haven't been setting the exit code, so even when tests fail, the return code
has been a success.  Here's an example:

https://travis-ci.org/ioerror/blockfinder/jobs/20337141

Now we check to see if any of the tests failed - and if they did, indicate a
failure by returning the number of failed tests.  This works because of bash's
strange error handling - 0 is true (success), while 1-255 are false (failure).
Fix Python 2.6 support

In #69, explicit decoding of the lines was added.  However, this was done using
a keyword argument that isn't supported in Python 2.6.

The good news is that there's no reason to use a keyword argument here - all
versions take the same parameters.  So if we just remove it, all is good.
str decode() takes no kwargs, replace with arg
Add ASN and AS Description lookup by IP.

This adds the following commands:
 --init-asn-descriptions, --reload-asn-descriptions
   Download or Update ASN to AS Description mappings into the db.

 --init-asn-assignments, --reload-asn-assignments
   Download or Update Netblock to Origin AS mappings in the db.

 --lookup-org-by-ip
   Query the Netblock and Origin AS by IP Address

 --lookup-org-by-range
   Query the Netblocks and Origin AS in a range of IP Addresses.
   Requires --range-start and --range-end to be specified.
Add geoip csv file export, in the same format as MaxMind.
This might be useful for building debians geoip-database package from
alternate data sources.

Also adds experimental geoip asnum csv file export.
This might be useful for extending debians geoip-database package to
support building a geoip asnum database.
Merge pull request #78 from aagbsn/fix/77_str_decode_arguments

str decode() takes no kwargs, replace with arg
Merge pull request #76 from aagbsn/feature/add_asn_lookup_by_ip

Add ASN and AS Description lookup by IP.
Merge pull request #79 from aagbsn/feature/add_export_geoip

Feature/add export geoip
Merge pull request #73 from Gnuns/patch-1

Update README
Merge pull request #75 from xiongchiamiov/fix-python-26-support

Fix Python 2.6 support
remove debian/ from master
bump to version 3.14159 to prepare for release
use ipaddr as a fallback for old pythons
Fix Maxmind import