fix TypeError
change to requests method
Merge pull request #28 from ccarruitero/webpy

fix TypeError