pythonic reset after C-c