Update librayleigh.py

changed to return a dictionary