You could have queries.pageQuery be just the template string, and then you could fill in the values just like below:
```self.pageQuery = queries.pageQuery % (self.page_id, self.page_id)```
But, it's probably better to make it a method because the interface is clearer:
```def createPageQuery(page_id): ...```