Fix up the TLVs that are now QWORD values in MSF

Various values were adjusted to become QWORD values in MSF an windows meterpreter, but the changes were not ported over to python, php and java. This commit fixes the php and python parts.

There is one other change here, to do with the `IMAGE_BASE` TLV that relies on https://github.com/rapid7/meterpreter/pull/88 landing first.

There's also a Java version here: https://github.com/rapid7/metasploit-javapayload/pull/17