Python implementation of ua-parser