Python-Neighbourhood Algorithm-Source Time Function