Manage some methods as class and instance method

issue4242
review9771002
Remove password on set_trytond

issue4264
review9781002