Python function blues

Not returning any value,  still.  

Fixed it now. The  problem was with another function that the higher function was calling.