You can return 'container' here, instead of accessing the dictionary again. It's minor thing, but always good practice to return private variable.