Python Function To Return Type Of Variable