replace python define , enable python support