Cleaned up functiona_builder() and if name main block.

Removed unecessary intermediate symbol in function_builder() and simplified for loop in if name main block to loop over the items in the_list.