Append Values In String In Python Function