python useful routines added