You might want to look at using pop here.
http://docs.python.org/2/library/stdtypes.html#dict.pop