Tools for dealing with APOGEE data