modified asm.py