Few fixes for a better Python code

Changed classes to subclass from `object`, changed the default value of `Api` class variables from a list to `None`, also removed type checking for the `params` parameter and made the default value a dict `{}`.