make sure serializer is same wether python2.6 or 2.7