Update risch.py

made some changes as suggested by @ness01