add a full funtion py script