Add safe_input file
Add safe_input function that returns None instead of raising EOFError and KeyboardInterrupt
Add docstring to safe_input function