The code was not robust anymore in weird cases where file['k']=='', it is now.
Merge pull request #26 from gissehel/robustkey

The code was not robust anymore in weird cases where file['k']=='', it is now.