Make code more pythonic and change http code check
Merge pull request #7 from simark/list

Make code more pythonic and change http code check