def build_os_environment_string(env):
return "<STR_LIT>".join(["<STR_LIT>".format(key, env[key]) for key in env])<EOL>
Creates a string of the form export key0=value0;export key1=value1;... for use in
    running commands with the specified environment

    :Parameter variables: a dictionay of environmental variables
    :Returns string: a string that can be prepended to a command to run the command with
    the environmental variables set