Update prepare-core.sh

The syntax for the print statement is invalid for python3. This change makes it portable across both python2 and python3.