Master account sequence management pvy

You can use the seq_obj already defined above to prevent one more call to self.pool.get('ir.sequence')
main_seq = seq_obj.create(....)