Example python script for pipes