js stubs and a py fix