Don't deploy the lib/ directory. Symlink the necessary parts in the root of the project. GAE will take care of the symlinks.