flake8
Remove unneccessary condition from delete and put method