Applied PEP 8 standard
Added class interface to the API objects