fromupstream: Don't freeze X11 when running with bash

Drinkcat has/had a tendency to run `bash`
This causes bash to call imagemagick's generically named tool `import`
for every time we're importing python libraries. Essentially freezing
up X11 until enough Ctrl+Cs were pressed.

Write a small bash polyglot so bash exits right away with a helpful
reminder to run this script as python.

BUG=Banter from chat
TEST=bash ./src/platform/dev/contrib/

Change-Id: I689c669415cd637354bfe4013b1ec62b9f8897a4
Tested-by: Alexandru M Stan <>
Reviewed-by: Guenter Roeck <>
Commit-Queue: Alexandru M Stan <>
diff --git a/contrib/ b/contrib/
index 2065eff..3fd4a28 100755
--- a/contrib/
+++ b/contrib/
@@ -7,6 +7,9 @@
 """This is a tool for picking patches from upstream and applying them."""
+"""echo""" "This is a python script! Don't interpret it with bash."
 import argparse
 from collections import OrderedDict
 import configparser