added simplified local_max for spots. tested with tests/spots.py