Allow Retrieval of Metadata on Instructions

I added two methods to instructions, get_metadata(kind) and has_metadata().  The functionality already existed on the C side, but there was no way to access it from the python side.