make dict.iterimes cross python compatible