Base python classes for generating JS