python script for lua mimify - not completed