Reverted wvm.py which is the original code