Update grayCode.py

change list to set