Functions written in Python for CS 1301