The code in this repo is by no means pretty or Pythonic.
I took an article that is linked below and re-used it, adding my own modifications for my own purposes and also to massively improve the speed.
The shell files are my own and were written by me, but again they are for pure ease of use.
Everything in this repo is custom-made for a specific purpose, it is unlikely to be of any use to you.
Custom version of - http://www.wallix.org/2012/02/29/pylogsparser-visualizing-ssh-attacks-in-video/
In action - https://vimeo.com/37818131/
See also requirements.txt:
GeoIP-Python==1.2.5 basemap==1.0.2 lxml==2.3.3 matplotlib==1.1.0 numpy==1.6.1 pylogsparser==0.4 pyshapelib==0.3