python list pop first element time complexity