def lower(boolean):
    """
    Change python bool (True, False) to string which is recognized
    by javascript
    :param boolean: bool 
    :return: bool in string
    """
    if boolean:
        return 'true'
    else:
        return 'false'