added Python example functions