Fixed some minor python syntax stuff