python: add InputEvent.matches(type, code) for comparisons

Allows for:
	if e.matches("EV_REL", "REL_X"):
	   print("Relative X events")

but it'll happily take integers as well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>