fix emba, split and support m for python