python code sample