2D Histogram Filter in Python - Ubbergo