Right, then the script is presumably running just fine. As @giovanni is hinting, print() won’t show any text anywhere because you haven’t connected it to anything that shows text… Either plug it into a Large Type or a Show Notification, or change it to print('blah', file=sys.stderr), in which case the text will be shown in Alfred’s debugger.
Also, you probably want print('some text', end='') if you're not printing to the debugger, so there isn’t a newline on the end of the text.