added js and python source for risk solver