Duplicate Function In Python Example