Two misc patches

1. Allow collection of .py files as data files, for programs that inspect the filesystem then dynamically import plugins.
2. Add a hook for markdown to expose its hidden imports.