changed raw_input for priority so that it was converted to an int and didn't return a valueerror