wrap as

```
    p = Piecewise((0, Piecewise((cos(x) < 0, x < 1),
        (1/x > 0, x >= 1))), (1, True))
```

And insert space after colon below.

Otherwise, looks good! Nice to see Piecewise maturing.