Python module for creating silk queries