Enter a file and get its encoded information as output. Place that output in your source code like this:
from cStringIO import StringIO
where eJwBzBUz6... is whatever output you get from this utility.
The keyboard heatmap utility has an example of using this method.