Adds compatibility with factory_boy 2.0+

Factory_boy removed **set_creation_function** in favor of the classmethod **_create**.