Removed improper use of `sys`.
Adding riskc.py - compact version.