Raise Syntax Error Python Code