Correlating ObjectIds with EntityIds?

Hi having some issues with my python script decoding the base-64 object, just figured out that I needed to pad the objectId to get it to decode properly.  Just returned from the holidays so I’m back working on it.