Changed get_berry_pi() function in script