Adding Nick Becker's safe_input.py file