Laid out a few things, Python functions aren't working right