Python 3.4 is installed on the stable release of Ubuntu 14.04. To use it, just type python3. For example, to compile the script, type:

$ python3

See the full explanation on this AskUbuntu help forum post.

Note: The above answer on AskUbuntu seems to reference information from the Open Book Project Python guide.