Netbeans code advices for C++ and Python

going through the C,C++,py and .h files and checking for coding advices by netbeans. 
Inclludes things like: remove unused imports, unused variables, etc