New version of services.py supporting the instantiateFilter method