python binding compatible import