Export map_selection() and set_selection() to reform.py
First hacks at scopes