You will need to edit MyComponent.spd.xml before your Python component will work properly. Find the XML tag below the tag <code type="'Executable"'>. By default the next tag is:
<localfile name="'bin/MyComponent"'/>}This needs to be changed to:
<localfile name="'bin/MyComponent/MyComponent.py"'/>