A better line continuation would be:

``` python
                np.multiply(a, (2 ** o - 1) // (2 ** n - 1), 
                            out=b, dtype=b.dtype)
```