Python Method Chaining Javascript Console Output To Text