modified the function to set the constants to accomodate pythonista