s4-python: add function to manipulate sites in python