Make api class into a new style class so that we may have an init method
on the BatchApi class that inherits from it.