Added some methods to Python code.
Added new python code. Modified cpp code though Im not sure what I did exactly, might have to revert some changes.