First version of ray.py working