check for rest.py first for best backwards compatibility