<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def alter_partition( self, spec, location=None, format=None, tbl_properties=None, serde_properties=None, ):
 """ Change setting and parameters of an existing partition Parameters spec : dict or list The partition keys for the partition being modified location : string, optional format : string, optional tbl_properties : dict, optional serde_properties : dict, optional Returns ------- None (for now) """

        part_schema = self.partition_schema()

        def _run_ddl(**kwds):
            stmt = ddl.AlterPartition(
                self._qualified_name, spec, part_schema, **kwds
            )
            return self._execute(stmt)

        return self._alter_table_helper(
            _run_ddl,
            location=location,
            format=format,
            tbl_properties=tbl_properties,
            serde_properties=serde_properties,
        )