Python functions for easing photo management