Trying to fix some errors in my Python Code.