Pattern for python | Synapse