def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("/python"),
                            event.deep_get("Image", default="").endswith("/python2"),
                            event.deep_get("Image", default="").endswith("/python3"),
                        ]
                    ),
                    any(
                        [
                            "/python2." in event.deep_get("Image", default=""),
                            "/python3." in event.deep_get("Image", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    "http.server" in event.deep_get("CommandLine", default=""),
                    "SimpleHTTPServer" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
