code fragments in PY & PL