Added contexts to tokens and context matching to instructions. Ported the code to python 3