Basic Psychometric Functions (Python)