Method to check python package version