single.py: fixes