Depending upon your server OS, you may find the Python version to be out-of-date. This is often due to the OS relying on a particular version for system scripts, etc.
On some servers we have installed additional python versions and named them python3, python2, etc. If your server does not have these you can request and install or you can make a private python install to your shell account.
It is quick and easy to install your own python version to your shared hosting shell account.
1. Download python (change this to the version you need)
2. configure to use your local dirs:
./configure --prefix=$HOME/python make make install