Kindly find the document attached at the end of this mail that will help you in working with python-hive UDF.
Please try the same from your end and let me know if this helps or not.
Regards
Sumit Anand
edureka! Solution Team
Website - www.edureka.co
Edureka claims 1st position at Deloitte's Technology Fast 50 India 2014