Allow to delete resources
Fix pep8 errors