Spatial clustering based on response to inputs and building a reduced model
I'm not sure I'm following your question completely, but for spatial type clustering maybe a Self-Organizing Map would meet your needs. Basically it maps out the space based on nearby activations. 

Side answer: I haven't used python