At the moment you can do this to create FileContext objects directly like this:
from pyesgf.search.context import FileSearchContext
ctx = conn.new_context(context_class=FileSearchContext, **constraints)
This is very useful for optimising queries. Needs documenting