Creating Python Code With Multiple Functions