Copy the _bootlocale module for Python 3.4

Special thanks to @haypo for helping me figure this out!