Updated definition of `get_pi_shift`

Currently, it returns `true` if we find the `arg` is of form:
`n*pi/12` and also returns back `n`.
In all other cases it returns false.