modified new method on updates.py according to official api
Merge pull request #1 from abensrhir/master

modified new method on updates.py according to official api