Python sequence operations and fn arguments