Goal Based Agent Python Programming