Transfer local spatial_learning.py file to repo