Repository: moogar0880/PyTrakt

Issue:
accessing User.list attribute throws python exception
python version: 3.6.8
trakt version: 2.12.0

when trying to get a list of the users lists an exception is returned
ie
```
import trakt
from trakt.users import User, UserList
from pprint import pprint

trakt.core.CLIENT_ID = cfg['client_id']
trakt.core.CLIENT_SECRET = cfg['client_secret']
trakt.core.OAUTH_TOKEN = cfg['oauth_token']

u = User('my_user')
pprint(u.lists)
```

returns the following exception:

```
Traceback (most recent call last):
  File "./tlist.py", line 38, in <module>
    pprint(u.lists)
  File "/opt/mediascripts/lib/python3.6/site-packages/trakt/core.py", line 474, in inner
    return generator.send(json_data)
  File "/opt/mediascripts/lib/python3.6/site-packages/trakt/users.py", line 299, in lists
    **extract_ids(ul)) for ul in data]
  File "/opt/mediascripts/lib/python3.6/site-packages/trakt/users.py", line 299, in <listcomp>
    **extract_ids(ul)) for ul in data]
TypeError: type object got multiple values for keyword argument 'user'
```

However, querying a specific list by name does work
`mylist = u.get_list('my-list-name')`



Discussion:

Patch:
diff --git a/trakt/users.py b/trakt/users.py
index b75ad6a..d4f48bd 100644
--- a/trakt/users.py
+++ b/trakt/users.py
@@ -295,6 +295,10 @@ class User(object):
             data = yield 'users/{username}/lists'.format(
                 username=self.username
             )
+            for ul in data:
+                if "user" in ul:
+                    # user will be replaced with the self User object
+                    del ul["user"]
             self._lists = [UserList(creator=self.username, user=self,
                            **extract_ids(ul)) for ul in data]
         yield self._lists


Test patch:
diff --git a/tests/mock_data/users.json b/tests/mock_data/users.json
index a1ff93d..f0222c3 100644
--- a/tests/mock_data/users.json
+++ b/tests/mock_data/users.json
@@ -206,7 +206,15 @@
                 "item_count":5,
                 "comment_count":0,
                 "likes":0,
-                "ids":{"trakt":55,"slug":"star-wars-in-machete-order"}
+                "ids":{"trakt":55,"slug":"star-wars-in-machete-order"},
+                "user":{
+                    "username": "sean",
+                    "private": false,
+                    "name": "Sean Rudford",
+                    "vip": true,
+                    "vip_ep": true,
+                    "ids":{"slug":"sean"}
+                }
             },
             {
                 "name":"Vampires FTW",
@@ -221,7 +229,15 @@
                 "item_count":5,
                 "comment_count":0,
                 "likes":0,
-                "ids":{"trakt":52,"slug":"vampires-ftw"}
+                "ids":{"trakt":52,"slug":"vampires-ftw"},
+                "user":{
+                    "username": "sean",
+                    "private": false,
+                    "name": "Sean Rudford",
+                    "vip": true,
+                    "vip_ep": true,
+                    "ids":{"slug":"sean"}
+                }
             }
         ],
         "POST": {