The doc for head says that the method is:
head([{'-n', <num>},] file [, file ...])
But it should be:
head([{'-n': <num>},] file [, file ...])
(colon in options object)
@ariporad's EDIT:
- head([{'-n', <num>},] file [, file ...])
+ head([{'-n': <num>},] file [, file ...])