unify signatures to please python3