Bugfix on extend() method on api.py: now gets the path and urls