This issue is solved. Here was the problem:
wsgi-lsapi was quietly changing working directories to /var/www/example.com/myapp, which had a file named locale.py in it (thus interrupting a similarly named file from being loaded from the stdlib). I consider this a bug as the location variable...