Merge branch 'arity' into 'master'

Increase Boost Python function arity only when necessary

See merge request !36
2 jobs for master in 118 minutes (queued for 2 seconds)