Convert Object Data Type To String In Python Function