Refactored `get_pi_shift` according to style_guide

Updated the parameters of get_pi_shift.
Now the function definition looks something like this:
bool get_pi_shift(const RCP<const Basic> &arg,
		 int &n,
	         const Ptr<RCP<const Basic>> &x);