STY: 'open()' and 'close()' to 'with' context manager
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

thanks @MomIsBestFriend ideally you could push this change upstream to pyperclip itself as well.