Modified the Python script

- It streams the PhantomJS-script's output instead of waiting until it
  finishes before getting the output