update python bundle and fixed some errors in syntax