Call this script to remove unwanted files (.pyc for instance) from a plugin, then zip it up for distribution to users.
Put the script somewhere.
I actually call it from an automator action by passing a Get Selected Finder Items action into a Run Shell Script action that runs this script:
/full/path/to/script/clean-and-zip-plugin.py "$@"
You can run it directly from the command line though.