Modified to compare tuple
Added python 2.5
Added python 2.5