python dictionary pop time complexity