virtualenv fails when creating the environment's site.py for distributions with only optimized bytecode (only .pyo and no .pyc files). It ends up writing the .py file to site.pyo. This fix adds a check for .pyo extensions to resolve the issue.
Add check for .pyo extension when creating site.py.
Changelog for #759