use simplified partial if we use python 2.4