Ignore non-python files (files not ending in .py).

Also decode the filepath if it is bytes instead of str. This fixes 'Command already registered' errors when reloading plugins.
Merge pull request #249 from daboross/patch-fix-reloading

Fix reloading plugins