sample python code