Ray is a general purpose framework that allows for parallel computation on a local machine, as well as scaling to a Ray cluster.
See the hello_world example for how you might accomplish scaling Apache Hamilton on Ray, where @ray.remote is injected around each Apache Hamilton function.
For this paralle task approach see this example instead.