def built_before(building, timestamp, player):
    """Get list of buildings constructed before a given time."""
    result = []
    for item in player['build']:
        if item['building'] == building and item['timestamp'] < timestamp:
            result.append(item)
    return result