change print statements to print() for python3 compatibility

Latest osc from git refuses to accept this plugin without this.
remove references to outdated FSF address

Also minor tweaks to formatting.
fix inconsistent indentation which breaks with Python 3
add missing cmdln import
Merge pull request #1 from aspiers/master

Add python3 support and other misc tweaks