test python compatibility better