Detect String Between Python Function Overloading Program