to make solver workable with both ( old and new pythonflu version )