singleton.py: Basic sinleton alternatives.