Please use the following code for seismic phase picking: https://github.com/JanisHe/seisbench_picking
Please use the following code for seismic phase association: https://github.com/JanisHe/association
Both codes include a documentation and examples.