generating python labs