Replaced FlatSpatialPooler with SpatialPooler, followed numenta python code styling, used pyling to make code more readable