Pmt to python converters

Part of this was taken from grextras; it allows converting much easier from Python objects to PMTs and vice versa. This is super-useful when dealing with tags inside Python blocks and unit tests.