Python Function Modify Input Overlay