api.py: adds readd_repos() function