Create a wrapper function in pure Python for this.