Bash Script Return String From Function Python