references for python code