Replace "print" with "self.stdout.write"

This way, the output can be redirected via call_command
Merge pull request #19 from GermanoGuerrini/master

Replaced "print" with "self.stdout.write"