<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getvar(key, default=None, template='OPENSHIFT_{key}'):
 """ Get OPENSHIFT envvar """

    return os.environ.get(template.format(key=key), default)