Reuse logfmt-python logic

Since I'm also guilty/familiar with logfmt-python logic, and it performs
relatively well, let's steal it:

```
                           user     system      total        real
char-by-char           0.050000   0.000000   0.050000 (  0.053026)
```