Preview - python user defined functions