Revmoe Python implementations