Python 3 fixes for the version module for catching empty lists.
Authored by: bugman 2012-10-01
Parent: [r17633]
Child: [r17635]