records: Python 2.6 compatibility fix
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch> Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>