python code for solving various NP complete problems