Add safe_input.py

I wasn't sure how to implement this as a wrapper.