Python helper functions for dealing with python packages