[travis] Install py.test if not present

This is for running builds using travis-solo
Allow decorating functions with no args
Inject dependencies into modules when installing