Python Graph Database Implementation