call the strftime function with argument string "%Y%m%d-%H%M%S" on the return value of the function datetime.datetime.now, substitute the result for timestamp.
timestamp = datetime . datetime . now ( ) . strftime ( "%Y%m%d-%H%M%S" )