from os import uname def check_all(*callables): def check(**kwargs): return all(c(**kwargs) for c in callables) return check def check_any(*callables): def check(**kwargs): return any(c(**kwargs) for c in callables) return check def is_platform(platform): def is_x(**kwargs): r