Writing Python and JS scripts for testing