Fix communication issues on python and js end.