Fixed bracketing on python