Beginner help: AttributeError, basic programs will not run