Bash Script Python Virtual Function