Function changes list values and not variable values in Python,return [(x + 1) for x in y]