Added pymex module with mateval function and exception handling.