chmod +x test.py.
Put simple code snippets of bibpy into index_gen.py