notes on python functions