Some Python simplifications
Added MaxMind local database option