changed all php SESSION to flask session
and .= to +=
changed ba64 encoding to python base64
encoding
and changed . to +  at lines 186 to 189
added a "+" at line 185 that was missed durring the changes