fix bug on python 2.7.3 (which is not there in 2.7.5) which apparently comes from a circular import issue.