Fixed bugs in useragents.py