advanced python samples