examples as python code