Implement RAW communication between PhantomJS and Python scripts.