fix path in codegen
fix build test
git ignore .pyc and hidden files