HowTo delete a key and keeping the value at the same time in python?