pure Python (no prereqs) coordinate conversions, following convention of several popular Matlab routines.