python list pop first time complexity