Python 3.1 is slower on spoj because:
1) start timing for the interpreter is 0.11s vs 0.02s for python2.7, or 0.03s for python2.5,
2) python3.1 as slow de/en/coding to unicode reading and writing, even if the input is not unicode.
3) more, 2) has a bigger memory cost...
4) other few things are faster or slower, it makes few diffrences.
=====
For the future :
Python 3.2 will still have slow unicode de/en/coding IO, but
Python3.3 will be quite as fast as Python2.7, the de/en/coding will be transparent.
Info here.
I hope Python3.3 will be quickly adopted as fast as possible.