def server_appvers():
    plist_path = '/Applications/Server.app/Contents/Info.plist'
    server_app_version = CFPreferencesCopyAppValue('CFBundleShortVersionString', plist_path)
    if not server_app_version:
        print "Can't find Server.app, are you running this on your Mac server instance?"
        sys.exit(2)
    elif server_app_version < 4.1:
        print "Not Version 4.1(+) of Server.app"
        sys.exit(3)
    elif server_app_version < '5.0':
        return 'Four'
    else:
        return 'Five'

# utility methods
Checks for/gets server.app version, since we're forking between 4 and 5
dataset/ETHPy150Open macadmins/sashay/sashay.py/server_appvers