Update misc_part_func.py

replaced first function, only minor change in print statement -KL