Correct cut and paste error; pkeyfile is only used when reading a file
Do use non keyword arguments after keyword dito
Add MIT Licence.