Mac_OSX addition to database python scripts