My attempt at instagrams engineering challenge in python.