Create recover-singlets.py

First version.