<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def serializeG1(x, compress=True):
 """ Converts G1 element @x into an array of bytes. If @compress is True, the point will be compressed resulting in a much shorter string of bytes. """

    assertType(x, G1Element)
    return _serialize(x, compress, librelic.g1_size_bin_abi,
        librelic.g1_write_bin_abi)