Create cleanup_input.py

Initial mock-up of cleanup_input.