Javascript automation with Python