<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_colors(n):
 """Returns n unique and "evenly" spaced colors for the backgrounds of the projects. Args: n (int):
 The number of unique colors wanted. Returns: colors (list of str):
 The colors in hex form. """


    import matplotlib.pyplot as plt
    from matplotlib.colors import rgb2hex as r2h
    from numpy import linspace

    cols = linspace(0.05, .95, n)
    cmap = plt.get_cmap('nipy_spectral')
    return [r2h(cmap(i)) for i in cols]