use _platform instead of multiple calls to str().lower()