Python End To End Testing Javascript