Improve code quality
Improve code quality

--- a/resources/lib/api.py
+++ b/resources/lib/api.py
@@ -32,10 +32,11 @@
 
 import xbmc
 
-""" Api documentation
-https://github.com/CloudMax94/crunchyroll-api/wiki/Api
-"""
+
 class API:
+    """Api documentation
+    https://github.com/CloudMax94/crunchyroll-api/wiki/Api
+    """
     URL    = "https://api.crunchyroll.com/"
     VERSON = "2313.8"
     TOKEN  = "QWjz212GspMHH9h"
@@ -116,6 +117,8 @@
 
 
 def close(args):
+    """Saves cookies and session
+    """
     # create cookie path
     cookiepath = os.path.join(
         xbmc.translatePath(args._addon.getAddonInfo("profile")),

--- a/resources/lib/cmdargs.py
+++ b/resources/lib/cmdargs.py
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import sys
-import xbmc
 try:
     from urlparse import parse_qs
     from urllib import unquote_plus

--- a/resources/lib/controller.py
+++ b/resources/lib/controller.py
@@ -17,7 +17,6 @@
 
 import sys
 import time
-import json
 
 import xbmc
 import xbmcgui