A Python package for processing astronomical photographic plates