Made many2many optional and fixed pep issues #22