Initial commit of current pypsr routines.