removed superfluous __main__ part from shptools.py
added nearest neighbour code to pandashp.py and shapelytools. Several helper functions along the way.